package com.sansecy.progressbar;

import java.util.Calendar;

/**
 * @Description TODO
 * @Date 2019-08-09 15:26
 * @Created by caoyu
 */
public class TiimeUtils {

    public static long getTotalMinutes(int timestamp) {
        Calendar calendar = Calendar.getInstance();
        calendar.setTimeInMillis(timestamp);
        int minute = calendar.get(Calendar.MINUTE);
        int hour = calendar.get(Calendar.HOUR);
        int second = calendar.get(Calendar.SECOND);

        return minute;
    }


}
